import request from "../utils/axios";

export const getUserByPhone = (params:any) => {
    return request.get(`/api/user`,{
        data:params
    })
}

export const login = (params:any) => {
    return request.post(`/api/user/login`, params)
}

export const addCinemaManager = (params:any) => {
    return request.post(`/api/user/addCinemaManager`, params)
}

export const delCinemaManager = (params:any) => {
    return request.post(`/api/user/delCinemaManager`, params)
}

export const editCinemaManager = (params:any) => {
    return request.post(`/api/user/editCinemaManager`, params)
}

export const getUserVO = () => {
    return request.get(`/api/user/getUserVO`)
}

export const addBuyer = (params:any) => {
    return request.post(`/api/user/addBuyer`, params)
}
